import { Pipe, PipeTransform } from '@angular/core';

/**
 * Generated class for the sexPipe pipe.
 *
 * See https://angular.io/api/core/Pipe for more info on Angular Pipes.
 */
@Pipe({
    name: 'sexPipe',
})
export class SexTransform implements PipeTransform {
    /**
     * Takes a value and makes it lowercase.
     */
    transform(value, ...args) {
        if(value){
            if(value == "F"){
                return '女';
            }else if(value == "M"){
                return '男'
            }
        }
        return '-';
    }
}
